﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;


namespace WebPiket3Main
{
    /// <summary>
    /// Логика взаимодействия для MainWindow.xaml
    /// </summary>
    public partial class MainWindow : Window
    {
        public MainWindow()
        {
            InitializeComponent();
            Sources.SourcesInterface.Init();
            wndNote = new WebPiket3Note.NoteWindow();
            this.Left = 0;
            this.Top = 0;

        }
        WebPiket3Note.NoteWindow wndNote;

        private void Window_StateChanged_1(object sender, EventArgs e)
        {
            WindowState = System.Windows.WindowState.Normal;
            this.Left = 0;
            this.Top = 0;
        }


        private void ToggleButtonNote_Click(object sender, RoutedEventArgs e)
        {
            if (ToggleButtonNote.IsChecked == true)
                wndNote.Show();
            else
                wndNote.Hide();
        }
    
    }
}
